#include "ScnsKeyboardGpio.c.h"

#if defined(SCNS_KEYBOARD_GPIO_ENABLE)&&SCNS_KEYBOARD_GPIO_ENABLE==1

#include "ScnsKey.h"
#include "stm32h750xx.h"

const ScnsKeyEnum scnsBspKeyboardGpioKeyEnum[SCNS_BSP_KEYBOARD_GPIO_KEY_MAX]={
    SCNS_KEY_PC13,
};

ScnsKeyPress scnsBspKeyboardGpioGet(uint8 keyN)
{
    switch(keyN)
    {
        case 0: return ((KEY_C13_GPIO_Port->IDR&KEY_C13_Pin)==0)?SCNS_KEY_PRESS_DOWN:SCNS_KEY_PRESS_UP;
    }
    return SCNS_KEY_PRESS_UP;
}

#endif
